.user-page {
  min-height: 100vh;
  background-color: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.user-header {
  background: linear-gradient(135deg, #4a6bff, #3a5af9);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(74, 107, 255, 0.2);
}

.header-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.settings-icon {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.settings-icon:hover {
  transform: rotate(30deg);
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.user-level {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 12px;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.function-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.function-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: #f0f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #4a6bff;
  font-size: 20px;
}

.function-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.function-card p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.action-list {
  background-color: white;
  border-radius: 8px;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  background-color: #f9f9f9;
}

.action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a6bff;
  margin-right: 16px;
}

.action-text {
  flex: 1;
  font-size: 16px;
  color: #333;
}

.action-arrow {
  color: #999;
  font-size: 14px;
}


/* 弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
}

.input-box {
  width: 100%;
  padding: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-actions {
  display: flex;
  justify-content: space-around;
}

.confirm-btn {
  background-color: red;
  color: white;
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.cancel-btn {
  background-color: #ccc;
  color: black;
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}